Skip to content

Conversation

@rabah-khalek
Copy link
Contributor

Supersedes #1527

@rabah-khalek rabah-khalek requested a review from mattbit October 31, 2023 18:04
@rabah-khalek rabah-khalek self-assigned this Oct 31, 2023
@linear
Copy link

linear bot commented Oct 31, 2023

@andreybavt
Copy link
Contributor

@rabah-khalek can you check the unit tests?

Copy link
Member

@mattbit mattbit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To rediscuss.

Comment on lines +23 to +24
if model.meta.model_type != SupportedModelTypes.TEXT_GENERATION and validate_ds is not None:
validate_optional_target(validate_ds)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need this in validate_model???

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should refactor model_validation and dataset_validation into one common validation, but the way the code is structured right now, I needed model.meta.model_type to do validate_optional_target for non-LLM models.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's just fix the llm-warning issue for now and deal with the refactoring post-release, I added a card here: https://linear.app/giskard/issue/GSK-2064/refactor-model-and-dataset-validation

@mattbit mattbit marked this pull request as draft November 3, 2023 15:37
@rabah-khalek rabah-khalek requested a review from mattbit November 5, 2023 12:58
@rabah-khalek rabah-khalek marked this pull request as ready for review November 6, 2023 18:21
@sonarqubecloud
Copy link

sonarqubecloud bot commented Nov 7, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

Copy link
Member

@mattbit mattbit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good but we should consider refactoring this soon.

@mattbit mattbit merged commit 468ab67 into main Nov 7, 2023
@mattbit mattbit deleted the GSK-1956-2 branch November 7, 2023 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants